// @description  创建可邀请课程
// @author 冯世玉
// @date 2018-7-23

import axios from "../index.js"

var inviteCourse= {
    // 创建可邀请课程
	  addinviteCourse:function(data,success,failure){
		return axios.postJson("/course/addInviteCourse",data,success,failure);
    },
    // 创建可邀请课程详情
    inviteCourseDetails:function(data,success,failure){
		return axios.post("/admin/course",data,success,failure);
    },
    // 课程详情编辑
    editInvitecourseDetails:function(data,success,failure){
		return axios.postJson("/admin/editCourse",data,success,failure);
    },
    //一般课程详情
    generalCourseDetails:function(data,success,failure){
      return axios.post("/admin/generalcourse",data,success,failure);
    },
    //一般课程编辑
    editGeneralCourseDetails:function(data,success,failure){
      return axios.post("/admin/editGeneralCourse",data,success,failure);
    },
    // 学员查看
    lookMembers:function(data,success,failure){
		return axios.post("/admin/members",data,success,failure);
    },
    // 学员更换组别
    editMebers:function(data,success,failure){
		return axios.postJson("/admin/editMembers",data,success,failure);
    },
    // 学员查看编辑
    editTeam:function(data,success,failure){
    return axios.postJson("/admin/editTeam",data,success,failure);
    },
    
}

export default inviteCourse